<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>欢迎页面-X-admin2.0</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="./css/font.css">
<link rel="stylesheet" href="./css/xadmin.css">
<script type="text/javascript"
	src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="./lib/layui/layui.js"
	charset="utf-8"></script>
<script type="text/javascript" src="./js/xadmin.js"></script>
<script src="./js/xcity.js" type="text/javascript" charset="utf-8"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<script type="text/javascript"></script>
</head>

<body>
	<div class="x-body">
		<table class="layui-table">
			<xblock>
			<button class="layui-btn layui-btn-danger">赔案派工信息</button>
			</xblock>
			<form class="layui-form" action="savesendstaff.html" method="post">
				<tr>
					<td style="width: 110px;"><span class="x-red">*</span>保单号</td>

					<td style="width: 400px;"><input type="text" id="L_email"
						name="email" required="" lay-verify="email" autocomplete="off"
						class="layui-input"
						<c:if test="${sessionScope.reportInfo != null}">
						value="${sessionScope.reportInfo.insuranceId}" </c:if> /></td>


					<td style="width: 110px;"><span class="x-red">*</span>报案号</td>

					<td style="width: 400px;"><input type="text" id="L_email"
						name="email" required="" lay-verify="email" autocomplete="off"
						class="layui-input"
						<c:if test="${sessionScope.reportInfo != null}">
						value="${sessionScope.reportInfo.reportNo}" </c:if> /></td>


					<td style="width: 110px;"><span class="x-red">*</span>投保人</td>

					<td style="width: 400px;"><input type="text" id="L_email"
						name="email" required="" lay-verify="email" autocomplete="off"
						class="layui-input"
						<c:if test="${sessionScope.reportInfo != null}">
						value="${sessionScope.p.policyHolder}" </c:if> /></td>

				</tr>
				<tr>
					<td><span class="x-red">*</span>出险地点</td>

					<td colspan="5"><input type="text" class="layui-input"
						<c:if test="${reportInfo != null}"> value="${reportInfo.dangerAddress}"</c:if> /></td>
				</tr>
				<tr>
					<td style="width: 110px;"><span class="x-red">*</span>公司</td>
					<td style="width: 400px;">
					<input type="text" id="num3"
						name="num3" required="" lay-verify="email" autocomplete="off"
						class="layui-input"
						<c:if test="${sessionScope.entrust != null}">value="${sessionScope.entrust.num3}"</c:if> /></td>
					<td style="width: 110px;"><span class="x-red">*</span>查勘人</td>
					<td colspan="3"><select name="surveyorsId">
							<option value="-1">---请选择查勘人---</option>
					<c:if test="${not empty sessionScope.list}">
						<c:forEach items="${sessionScope.list}" var="list">
							<option value="${list.personnelId}">${list.personnelName}</option>
						</c:forEach>
					</c:if>
					</select></td>
				</tr>

				<tr>
					<td colspan="6"><input type="submit" style="float: right;"
						class="layui-btn layui-btn-radius"  value="保存"></input>
					</td>
				</tr>

			</form>
		</table>
	</div>
	<script>
		layui.use([ 'form', 'layer' ], function() {
			$ = layui.jquery;
			var form = layui.form, layer = layui.layer;

			//自定义验证规则
			form.verify({
				nikename : function(value) {
					if (value.length < 5) {
						return '昵称至少得5个字符啊';
					}
				},
				pass : [ /(.+){6,12}$/, '密码必须6到12位' ],
				repass : function(value) {
					if ($('#L_pass').val() != $('#L_repass').val()) {
						return '两次密码不一致';
					}
				}
			});

			//监听提交
			/* form.on('submit(add)', function(data) {
				console.log(data);
				//发异步，把数据提交给php
				layer.alert("保存成功", {
					icon : 6
				}, function() {
					// 获得frame索引
					var index = parent.layer.getFrameIndex(window.name);
					//关闭当前frame
					parent.layer.close(index);
				});
				return false;
			}); */

		});
	</script>
	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
			var s = document.getElementsByTagName("script")[0];
			s.parentNode.insertBefore(hm, s);
		})();
	</script>
</body>

</html>